package ee.maoinvest.backend.model.data.views;

import java.math.BigDecimal;

import ee.maoinvest.GeneralConstants;
import ee.maoinvest.backend.model.data.ElectricityMeter;
import ee.maoinvest.backend.model.data.TransformerCoefficentStandard;

public class LocalTerritoryElectricityMeter extends ElectricityMeter
{
	/**
	 * 
	 */
	private static final long serialVersionUID = -5036897305133484538L;
	
	private TransformerCoefficentStandard transformerCoefficentStandard;
	private ElectricityMeter parentElectricityMeter;
	private BigDecimal parentMeterDaytimeReadingAtRelationStartDate;		// NUMERIC(14, 4)
	private BigDecimal parentMeterNightTimeReadingAtRelationStartDate;		// NUMERIC(14, 4)
	private BigDecimal parentMeterReactivePowerReadingAtRelationStartDate;	// NUMERIC(14, 4)

	
	public LocalTerritoryElectricityMeter()
	{
		setElectricityMeterTypeFK(GeneralConstants.LOCAL_TERRITORY_ELECTRICITY_METER_ID_IN_DATABASE);
	}
	
	public TransformerCoefficentStandard getTransformerCoefficentStandard() 
	{
		return transformerCoefficentStandard;
	}
	
	public void setTransformerCoefficentStandard(
			TransformerCoefficentStandard transformerCoefficentStandard) 
	{
		this.transformerCoefficentStandard = transformerCoefficentStandard;
	}
	
	@Override
	public ElectricityMeter getParentElectricityMeter() 
	{
		return parentElectricityMeter;
	}

	@Override
	public void setParentElectricityMeter(ElectricityMeter parentElectricityMeter) 
	{
		this.parentElectricityMeter = parentElectricityMeter;
	}
	
	public BigDecimal getParentMeterDaytimeReadingAtRelationStartDate() 
	{
		return parentMeterDaytimeReadingAtRelationStartDate;
	}

	public void setParentMeterDaytimeReadingAtRelationStartDate(
			BigDecimal parentMeterDaytimeReadingAtRelationStartDate) 
	{
		this.parentMeterDaytimeReadingAtRelationStartDate = parentMeterDaytimeReadingAtRelationStartDate;
	}

	public BigDecimal getParentMeterNightTimeReadingAtRelationStartDate() 
	{
		return parentMeterNightTimeReadingAtRelationStartDate;
	}

	public void setParentMeterNightTimeReadingAtRelationStartDate(
			BigDecimal parentMeterNightTimeReadingAtRelationStartDate) 
	{
		this.parentMeterNightTimeReadingAtRelationStartDate = parentMeterNightTimeReadingAtRelationStartDate;
	}

	public BigDecimal getParentMeterReactivePowerReadingAtRelationStartDate() 
	{
		return parentMeterReactivePowerReadingAtRelationStartDate;
	}

	public void setParentMeterReactivePowerReadingAtRelationStartDate(
			BigDecimal parentMeterReactivePowerReadingAtRelationStartDate) 
	{
		this.parentMeterReactivePowerReadingAtRelationStartDate = parentMeterReactivePowerReadingAtRelationStartDate;
	}

}

